package ooday02;

public class dog extends animal  implements swimi{
    dog(String color, int age,String name){
        super(color,age,name);
    }
    void lookhome(){
        System.out.println(color+name+"正在看家");
    }
    void eat(){
        System.out.println(color+name+"可以吃好多东西他最喜欢骨头");
        System.out.println("dog1");
    }
    void as(){
        System.out.println(21);
    }
    public void swimi(){
        System.out.println(color+"颜色"+age+"岁的狗狗"+name+"正在水里游来游去");
    }
    public void test1(){
        System.out.println("test");
    }

}
